package com.party.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.party.business.mapper.WeaponPlatformMapper;
import com.party.business.domain.WeaponPlatform;
import com.party.business.service.IWeaponPlatformService;

/**
 * 武器平台Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class WeaponPlatformServiceImpl extends ServiceImpl<WeaponPlatformMapper,WeaponPlatform>  implements IWeaponPlatformService
{
    @Autowired
    private WeaponPlatformMapper weaponPlatformMapper;

    /**
     * 查询武器平台
     *
     * @param id 武器平台主键
     * @return 武器平台
     */
    @Override
    public WeaponPlatform selectWeaponPlatformById(Long id)
    {
        return weaponPlatformMapper.selectWeaponPlatformById(id);
    }

    /**
     * 查询武器平台列表
     *
     * @param weaponPlatform 武器平台
     * @return 武器平台
     */
    @Override
    public List<WeaponPlatform> selectWeaponPlatformList(WeaponPlatform weaponPlatform)
    {
        return weaponPlatformMapper.selectWeaponPlatformList(weaponPlatform);
    }

    /**
     * 新增武器平台
     *
     * @param weaponPlatform 武器平台
     * @return 结果
     */
    @Override
    public int insertWeaponPlatform(WeaponPlatform weaponPlatform)
    {
            return weaponPlatformMapper.insertWeaponPlatform(weaponPlatform);
    }

    /**
     * 修改武器平台
     *
     * @param weaponPlatform 武器平台
     * @return 结果
     */
    @Override
    public int updateWeaponPlatform(WeaponPlatform weaponPlatform)
    {
        return weaponPlatformMapper.updateWeaponPlatform(weaponPlatform);
    }

    /**
     * 批量删除武器平台
     *
     * @param ids 需要删除的武器平台主键
     * @return 结果
     */
    @Override
    public int deleteWeaponPlatformByIds(Long[] ids)
    {
        return weaponPlatformMapper.deleteWeaponPlatformByIds(ids);
    }

    /**
     * 删除武器平台信息
     *
     * @param id 武器平台主键
     * @return 结果
     */
    @Override
    public int deleteWeaponPlatformById(Long id)
    {
        return weaponPlatformMapper.deleteWeaponPlatformById(id);
    }
}
